package com.dataseek.iot.mysql.entity;

import java.math.BigDecimal;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author cc
 * @since 2021-09-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("设备日志")
public class DeviceLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "alarm_log_inner_id", type = IdType.AUTO)
    private Long alarmLogInnerId;

    /**
     * 报警类型
     */
    @ApiModelProperty(value = "报警类型",required = true)
    private String alarmType;

    /**
     * 报警名称
     */
    @ApiModelProperty(value = "报警名称",required = true)
    private String alarmName;

    /**
     * 值
     */
    @ApiModelProperty(value = "报警取值",required = true)
    private String alarmValue;

    /**
     * 时间戳
     */
    @ApiModelProperty(value = "时间戳",required = true)
    private BigDecimal timestamp;

    /**
     * 消息ID
     */
    @ApiModelProperty(value = "消息ID",required = true)
    private String messageId;

    /**
     * 产品编码
     */
    @ApiModelProperty(value = "产品编码",required = true)
    private String productCode;

    /**
     * 产品名称
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "产品名称")
    private String productName;


    /**
     * 设备编码
     */
    @ApiModelProperty(value = "设备编码",required = true)
    private String deviceCode;

    /**
     * 设备名称
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "设备名称")
    private String deviceName;

    /**
     * 处理状态
     */
    @ApiModelProperty(value = "处理状态",required = true)
    private  String handleStatus;

    /**
     * 处理结果
     */
    @ApiModelProperty(value = "处理结果",required = true)
    private String handleResult;

    /**
     * 创建时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private String createTime;

    /**
     * 更新时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private String updateTime;


}
